import { createSlice } from '@reduxjs/toolkit';

const counterSlice = createSlice({
  name: 'collapsed',
  initialState: {
    value: false,
  },
  reducers: {
    changeCollapsed: (state) => {
      state.value =!state.value
    },
  },
})
export const { changeCollapsed} = counterSlice.actions

export const counterReducer = counterSlice.reducer
